package com.example.elderlycare.controller.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;
import java.util.List;

public class RosterRequestBody {
    @Data
    public static class AddRosterRequestBody {
        @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GTM+8")
        private Date time;
        private Integer type;
        private Integer employeeId;
        private Integer absent;
        private Integer leave;
    }

    @Data
    public static class AddRosterItem {
        @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GTM+8")
        private Date time;
        private Integer type;
        private Integer absent;
        private Integer leave;
    }

    @Data
    public static class AddRosterBatchRequestBody {
        private Integer employeeId;
        private List<AddRosterItem> items;
    }


    @Data
    public static class UpdateRosterRequestBody {
        private Integer id;
        @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GTM+8")
        private Date time;
        private Integer type;
        private Integer employeeId;
        private Integer absent;
        private Integer leave;
    }
}
